// mircoApp/new_coupon/components/detail_Combination/detail_Combination.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    isFirst: {
      type: Boolean,
      value: false
    },
    infoData: null
  },

  /**
   * 组件的初始数据
   */
  data: {

  },
  lifetimes: {
    attached: function () {
      let language = wx.getStorageSync("langIndex");
      this.setData({
        language: language.en,
      });
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    toNewCoupon() {
      if (!this.data.isFirst) return;
      wx.navigateTo({
        url: '/mircoApp/new_coupon/new_coupon_detail/new_coupon_detail?name=new_coupon_detail_combination&id=' + this.data.infoData.coupon_id,
      })
    }
  }
})